package com.tanxin.bill.modules.adapter;

import android.support.annotation.Nullable;

import com.allen.library.SuperTextView;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.tanxin.bill.R;
import com.tanxin.bill.common.data.CustomerData;

import java.util.List;

public class CustomerAdapter extends BaseQuickAdapter<CustomerData,BaseViewHolder> {
    public CustomerAdapter(@Nullable List<CustomerData> data) {
        super(R.layout.customer_recycle_item, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, CustomerData item) {
        SuperTextView tv = helper.getView(R.id.tv_customer);
        tv.setLeftString(item.getName());
        helper.addOnClickListener(R.id.tv_customer);
    }
}
